package com.chenxbook.modules.boot.exception;


/**
 * Description
 * <br>  自定义异常类
 *
 * @author chenxbook
 * @date 2020-03-28
 **/
public class BaseException extends RuntimeException {
    private IResponse iResponse;

    public BaseException(IResponse iResponse, String message) {
        super(message);
        this.iResponse = iResponse;
    }

    public BaseException(IResponse iResponse, String message, Throwable cause) {
        super(message, cause);
        this.iResponse = iResponse;
    }

    public IResponse getiResponse() {
        return this.iResponse;
    }

    public void setiResponse(IResponse iResponse) {
        this.iResponse = iResponse;
    }
}
